package com.jerry.springcloud.service;

import com.jerry.springcloud.entity.Payment;

import java.util.List;

public interface PaymentService {

    int create(Payment payment);

    Payment getPaymentById(Long id);

    List<Payment> getPaymentList();

    /**
     * 正常访问
     */
    String paymentInfo_OK(Long id);

    /**
     * 超时访问
     */
    String paymentInfo_Timeout(Long id);

    /**
     * 错误访问
     */
    String paymentInfo_Error(Long id);

    /**
     * 服务熔断
     */
    String paymentInfo_CircuitBreaker(Long id);
}
